package Pattern.FactoryPattern.Example;

/**
 * @Author MJS
 * @Date 2021/8/4 10:24
 * @Description
 * 生产工作流程
 */
public class FactoryPattern {
    public static void main(String[] args) {
        //客户想要产品A
        FactoryA factoryA = new FactoryA();
        factoryA.Manufacture().Show();
        //客户想要产品B
        FactoryB factoryB = new FactoryB();
        factoryB.Manufacture().Show();
        //客户想要产品C  就加一个产品加一个工厂
        FactoryC factoryC = new FactoryC();
        factoryC.Manufacture().Show();
    }
}
